package com.liugan.magic.utils;

import org.loon.framework.android.game.core.LSystem;
import org.loon.framework.android.game.core.graphics.LImage;
import org.loon.framework.android.game.core.graphics.opengl.LTexture;
import org.loon.framework.android.game.utils.TextureUtils;

import com.liugan.magic.Constants;

public class ImagesUtils4layer {
	
	public LTexture[] sound_b; 
	public LTexture bg;
	private static ImagesUtils4layer instance;
	
	private ImagesUtils4layer(){
		sound_b=TextureUtils.getSplitTextures(new LTexture(Constants.imagespath_s +"sound_b.png"), 26, 26);
		bg=new LTexture("assets/backgroud.png");
		bg.loadTexture();
		LSystem.gc();
	}
	
	public synchronized static ImagesUtils4layer getinstance(){
		if (instance==null){
			instance=new ImagesUtils4layer();
		}
		return instance;
	}
	
	public static void destroy(){
		instance=null;
		LSystem.gc();
	}
}
